package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class CTrucksDic {
    //    获取车辆信息审核状态
    public String getTruckPrivDic(Integer truckPriv){
        String truckPrivDic = "";
        if (truckPriv == null ){
            return truckPrivDic;
        }
        switch (truckPriv){
            case 0:
                truckPrivDic = "无特派";
                break;
            case 1:
                truckPrivDic = "特派";
                break;
        }
        return truckPrivDic;
    }

    public String getTrucksInfoApprovedDic(Integer trucksInfoApproved){
        String trucksInfoApprovedDic = "";
        if (trucksInfoApproved == null ){
            return trucksInfoApprovedDic;
        }
        switch (trucksInfoApproved){
            case 0:
                trucksInfoApprovedDic = "批准";
                break;
            case 1:
                trucksInfoApprovedDic = "未批准";
                break;
        }
        return trucksInfoApprovedDic;
    }

}
